import request from '@/utils/request'

/**
 *  保存设置项目
 * @param {} data 
 * @returns 
 */
export function saveSetUp(data) {
  return request({
      url: '/project/list/saveSetUp',
      method: 'post',
      data: data
  })
}

/**
 *  驳回项目
 * @param {} data 
 * @returns 
 */
export function rejectSetUp(data) {
  return request({
      url: '/project/list/rejectSetUp',
      method: 'post',
      data: data
  })
}

/**
 *  删除节点
 * @param {} data 
 * @returns 
 */
export function removeNode(data) {
  return request({
      url: '/project/list/del/node',
      method: 'post',
      data: data
  })
}



/**
 *  获取项目已选择步骤
 * @param {} data 
 * @returns 
 */
export function getSetup(data) {
  return request({
      url: '/project/list/getSetup?projectListId='+data,
      method: 'get' 
  })
}


/**
 * 查询项目设置详情
 * @param {} id 
 * @returns 
 */
export function getSetupDetail(id) {
  return request({
      url: '/project/list/getSetupDetail?projectListId='+id,
      method: 'get' 
  })
}

/**
 * 查询项目设置草稿
 * @param {} id 
 * @returns 
 */
export function getSetupDetailDraft(id) {
  return request({
      url: '/project/list/getSetupDetailDraft?projectListId='+id,
      method: 'get' 
  })
}



/**
 * 
 * @returns 获取项目列表
 */
export function getSetupProjectList(query) {
  return request({
      url: '/project/list/setup/list',
      method: 'get',
      params: query
  })
}


/**
 * 
 * @returns 保存设置
 */
export function saveSettimeMember(data) {
  return request({
      url: '/project/list/saveSettimeMember',
      method: 'post',
      data: data
  })
}


/**
 * 
 * @returns 设置保存草稿
 */
export function saveSettimeMemberDraft(data) {
  return request({
      url: '/project/list/saveSettimeMemberDraft',
      method: 'post',
      data: data
  })
}









 